//
//  ViewController.m
//  22-SDWebImage
//
//  Created by dllo on 16/8/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "UIImageView+WebCache.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *sdImageViewTest;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    only没有磁盘下载，不会给你自动下载请求的图片
//    显示下载进程，不是下载完才显示图片
//    延迟展位图片的显示，这个枚举的效果是等图片加载完成后才显示占位图片
    
    [_sdImageViewTest sd_setImageWithURL:[NSURL URLWithString:@"http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/01/0E/ChMkJ1bKwZ6IbJp_ACmCEdGWqeUAALGbAHovfMAKYIp986.jpg"]placeholderImage:[UIImage imageNamed:@"1.jpg"]];
    NSLog(@"%@",NSHomeDirectory());
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
